package org.yefei.homeworkday24;

import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;

public class Two {

	public static void main(String[] args) {
		InputStream i = null;
		try {
			i = new FileInputStream("F:\\叶飞io测试\\Chinese.txt");
			int available = i.available();
			byte[] b = new byte[available];
			int read = i.read(b);
			String s = new String(b, 0, read);
			System.out.println(s);
		} catch (Exception e) {
			e.printStackTrace();
		} finally {
			if (i != null)
				try {
					i.close();
				} catch (IOException e) {
					e.printStackTrace();
				}
		}
	}

}
